	// 从缓存获取路灯个数
	var eCount = window.localStorage ? localStorage.getItem("eCountMsg") : Cookie.read(
		"eCountMsg");
	var nCount = window.localStorage ? localStorage.getItem("nCountMsg") : Cookie.read(
		"nCountMsg");
	var wCount = window.localStorage ? localStorage.getItem("wCountMsg") : Cookie.read(
		"wCountMsg");
	// 基于准备好的dom，初始化echarts实例
	var i = 0;
	// 指定图表的配置项和数据
	option = {
		tooltip: {
			trigger: 'item',
			formatter: "{a} <br/>{b} : {c} ({d}%)"
		},
		legend: {
			x: 'center',
			y: 'bottom',
			top: '80%',
			data: ['东区', '西区', '北区'],
			textStyle: {
				color: '#4ADEFE',
			}
		},
		series: [{
			name: '路灯总数',
			type: 'pie',
			radius: ['40%', '55%'],
			center: ['45%', '35%'],
			avoidLabelOverlap: false,
			label: {
				fontSize: 13,
				color: '#aaffff', //'#F0F0F0'
				formatter: "{b}:{d}%"
			},
			data: [{
					value: eCount,
					name: '东区',
					itemStyle: {
						color: {
							type: 'linear',
							x: 0.5,
							y: 0.5,
							r: 0.5,
							colorStops: [{
									offset: 0,
									color: 'rgba(48,255,191,1)' // 0% 处的颜色
								},
								{
									offset: 1,
									color: 'rgba(22,201,145,0.31)' // 100% 处的颜色
								}
							],
							global: false
						}
					}
				},
				{
					value: wCount,
					name: '西区',
					itemStyle: {
						color: {
							type: 'linear',
							x: 0.5,
							y: 0.5,
							r: 0.5,
							colorStops: [{
									offset: 0,
									color: 'rgba(234,62,104,0.5)' // 0% 处的颜色 rgba(255,111,5,0.35)  rgba(253,185,87,1)
								},
								{
									offset: 1,
									color: 'rgba(194,28,68,1)' // 100% 处的颜色
								}
							],
							global: false
						}
					}
				},
				{
					value: nCount,
					name: '北区',
					itemStyle: {
						color: {
							type: 'linear',
							x: 0.5,
							y: 0.5,
							r: 0.5,
							colorStops: [{
									offset: 0,
									color: 'rgba(5,209,255,1)' // 0% 处的颜色
								},
								{
									offset: 1,
									color: 'rgba(8,88,103,0.54)' // 100% 处的颜色
								},
							],
							global: false
						}
					}
				}
			],
			itemStyle: {
				emphasis: {
					shadowBlur: 10,
					shadowOffsetX: 0,
					shadowColor: 'rgba(0, 0, 0, 0.5)'
				}
			}
		}]
		// color : ['#F3DB5D','#009AFF','#F77474']
	};